home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Internet / FeedDemon / FeedDemonInstall.exe / {app} / Data / Styles / Search Results.fdxsl2 < prev    next >
Encoding:
Extensible Markup Language  |  2009-09-09  |  7.4 KB  |  183 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
  4.  
  5. <xsl:output method="html"
  6.     doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  7.     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  8.  
  9. $INCLUDE(commonvar.inc)$
  10.  
  11. <fd:capabilities showExcerpts="true" toggleExcerpts="true" collapsePosts="false" itemGrouping="false" />
  12. <xsl:variable name="feed-type" select="newspaper/channel/@feedType"/>
  13.  
  14. <xsl:template match="newspaper">
  15.     <html>
  16.     <head>
  17.         <title>
  18.             <xsl:choose>
  19.                 <xsl:when test="title"><xsl:value-of select="title" disable-output-escaping="yes"/></xsl:when>
  20.                 <xsl:otherwise>$LANG_CONST(S_SearchResults)$</xsl:otherwise>
  21.             </xsl:choose>
  22.         </title>
  23.         
  24.         $INCLUDE(metatrans.inc)$
  25.         
  26.         <style type="text/css">
  27.             $INCLUDE(commonstyles.css)$
  28.             $INCLUDE(surfer.css)$
  29.             
  30.             div#newspapertitle, #searchagain { /*font-weight: bold;*/ }
  31.  
  32.             div.fdnewsitem {
  33.                 padding: 10px;
  34.                 text-align: left;
  35.                 border: 6px solid white; 
  36.             }
  37.             #fdfocusedpost { border-color: $COLOR-FOCUS-HIGHLIGHT$; }
  38.  
  39.             div.fdnewsitem, #fdfocusedpost, div.description { min-height: 100%; }
  40.             div.newsitemtitle { font-size: $FONT-SIZE-NEWSPAPER$; margin-bottom: 8px; font-weight: bold; }
  41.             
  42.             div.newsitemsep { 
  43.                 border-bottom: 1px dotted $COLOR-GROUP-HEADER-BORDER$; 
  44.             }
  45.             div.dateline { 
  46.                 margin: 4px 0; 
  47.                 color: gray; 
  48.                 font-style: italic;
  49.                 vertical-align: middle;
  50.             }
  51.             
  52.             #searchagain {
  53.                 float: right;
  54.                 font-size: small;
  55.                 margin-top: 4px;
  56.                 margin-right: 22px;
  57.             }
  58.             #searchagain a { color: $COLOR-PAGEHEAD-FONT$; }
  59.  
  60.             /*.even { background-color: #F1F5FC; }*/
  61.             span.sep { margin: 0 5px; }
  62.             .hidden { display: none; }
  63.                         
  64.             img.toggle {
  65.                 padding: 2px 2px 2px 0;
  66.                 margin-right: 2px;
  67.                 vertical-align: middle;
  68.             }
  69.             div.postenclosure { font-weight: bold; margin: 8px 0; vertical-align: middle; }
  70.             div.postenclosure a { text-decoration: none; }            
  71.         </style>
  72.     </head>
  73.     <body>
  74.         <xsl:variable name="folderId" select="@folderId"/>
  75.     
  76.         <div id="pagehead">            
  77.             <div id="searchagain">
  78.                 <a href="fdaction:?action=searchsubscriptions&showdialog=1">$LANG_CONST(S_SearchAgain)$...</a>
  79.             </div>
  80.             <div id="newspapertitle">
  81.                 <img src="$IMAGEDIR$search-lg.png" align="absmiddle" />
  82.                 <xsl:value-of select="title" disable-output-escaping="yes"/>
  83.             </div>        
  84.         </div>
  85.             
  86.         <div id="container">
  87.             <div class="groupheader">
  88.                 <div class="groupcaption">
  89.                     <xsl:choose>
  90.                         <xsl:when test="pageInfo and pageInfo/@numTotalPages>1"><xsl:value-of select="pageInfo/@numTotalPosts"/> $LANG_CONST(S_NewsLblMatchingItems)$</xsl:when>
  91.                         <xsl:otherwise><xsl:value-of select="$item-count"/> $LANG_CONST(S_NewsLblMatchingItems)$</xsl:otherwise>
  92.                     </xsl:choose>
  93.                 </div>
  94.             </div>
  95.             
  96.             <xsl:for-each select="channel/item">
  97.                 <xsl:sort select="@sortIndex" data-type="number"/>
  98.                 <xsl:variable name="feedId" select="@feedId"/>
  99.                 <xsl:variable name="postId" select="@postId"/>
  100.             
  101.                 <xsl:variable name="item-class">
  102.                     <xsl:choose>
  103.                         <xsl:when test="position() mod 2 = 1">fdnewsitem odd</xsl:when>
  104.                         <xsl:otherwise>fdnewsitem even</xsl:otherwise>
  105.                     </xsl:choose>
  106.                 </xsl:variable>
  107.                 <div class="{$item-class}" name="{$feedId}:{$postId}">                    
  108.                     <div class="newsitemtitle">
  109.                         <xsl:if test="postImageUrl and excerpt and $item-count > 1">
  110.                             <a id="{$postId}_fdpostimg" href="{postImageUrl}" title="{postImageUrl}">
  111.                                 <img class="fdpostimg" src="{postImageUrl}"/>
  112.                             </a>
  113.                         </xsl:if>
  114.                         <!-- toggle excerpt -->
  115.                         <a class="icon" href="fdaction:?action=toggleexcerpt&postid={$postId}&feedid={$feedId}">
  116.                             <img class="toggle icon" src="$IMAGEDIR$arrowright2.gif" id="{$postId}_img_toggle_excerpt" align="absmiddle" />
  117.                         </a>
  118.                         <!-- use unread style for all search results -->
  119.                         <a id="{$postId}_title" class="unread" href="fdaction:?action=gotopost&feedid={$feedId}&postId={$postId}" title="$LANG_CONST(S_NewsHintGotoPost)$">
  120.                             <xsl:value-of select="title" disable-output-escaping="yes"/>
  121.                         </a>
  122.                         <xsl:if test="link">
  123.                             <a href="fdaction:?action=gotopostlink&newtab=1&feedid={$feedId}&postid={$postId}" title="$LANG_CONST(S_NewsHintOpenInNewTab)$">
  124.                                 <img style="margin-left: 4px;" src="$IMAGEDIR$linknew.gif" align="top" />
  125.                             </a>
  126.                         </xsl:if>
  127.                     </div>
  128.                     <div class="dateline">    
  129.                         <!-- toggle flag - this will change the flag in the source feed -->                        
  130.                         <a class="icon" href="fdaction:?action=toggleflag&feedid={$feedId}&postid={$postId}" title="$LANG_CONST(S_NewsHintToggleFlag)$">
  131.                             <xsl:choose>
  132.                                 <xsl:when test="state/@flagged!=0">
  133.                                     <img id="{$postId}_img_flag" src="$IMAGEDIR$star-on.png" class="icon" align="absmiddle"/>
  134.                                 </xsl:when>
  135.                                 <xsl:otherwise>
  136.                                     <img id="{$postId}_img_flag" src="$IMAGEDIR$star-off.png" class="icon" align="absmiddle"/>
  137.                                 </xsl:otherwise>
  138.                             </xsl:choose>
  139.                         </a>
  140.                         <!-- tags -->
  141.                         <a class="icon" href="fdaction:?action=editposttags&feedid={$feedId}&postid={$postId}" title="$LANG_CONST(S_NewsHintEditTags)$">
  142.                             <img src="$IMAGEDIR$tag.png" class="icon" align="absmiddle" />
  143.                         </a>    
  144.                           <a class="icon" href="fdaction:?action=showtagmenu&feedid={$feedId}&postid={$postId}" title="$LANG_CONST(S_NewsHintTagMenu)$">
  145.                              <img src="$IMAGEDIR$tagmenu.gif" class="icon" align="absmiddle" />
  146.                          </a>                        
  147.                         <span class="taglist" id="{$postId}_taglist">
  148.                             <xsl:if test="taglist">
  149.                                 <xsl:value-of select="taglist" disable-output-escaping="yes"/>
  150.                             </xsl:if>
  151.                         </span>
  152.                         <span class="sep">|</span>
  153.                         <xsl:value-of select="dateDisplay"/>
  154.                         <span class="sep">|</span>
  155.                         <xsl:if test="source">
  156.                             <a href="fdaction:?action=gotofeedlink&feedId={@feedId}"><xsl:value-of select="source"/></a>
  157.                             <span class="sep">|</span>
  158.                         </xsl:if>
  159.                     </div>                    
  160.                     $INCLUDE(postenclosure.inc)$
  161.                     <div class="newsitemcontent">
  162.                         <xsl:choose>
  163.                             <!-- show excerpts when more than one item showing -->
  164.                             <xsl:when test="excerpt and $item-count > 1">
  165.                                 <!-- note that the full description is inserted dynamically by FeedDemon when the excerpt is expanded -->
  166.                                 <span id="{$postId}_description" class="collapsed"><xsl:value-of select="excerpt" disable-output-escaping="yes"/></span>
  167.                                 <a class="more" title="$LANG_CONST(S_NewsHintExpand)$" href="fdaction:?action=toggleexcerpt&postid={$postId}&feedid={$feedId}" id="{$postId}_expand_link">$LANG_CONST(S_NewsLblExpand)$</a>
  168.                             </xsl:when>
  169.                             <!-- otherwise show the full description -->
  170.                             <xsl:otherwise>
  171.                                 <xsl:value-of select="description" disable-output-escaping="yes"/>
  172.                             </xsl:otherwise>
  173.                         </xsl:choose>
  174.                     </div>
  175.                 </div>
  176.                 <div class="newsitemsep"></div>
  177.             </xsl:for-each>
  178.          </div>
  179.     </body>
  180.     </html>    
  181. </xsl:template>
  182.  
  183. </xsl:stylesheet>